package com.zsrt.java.day20161226.xww.demo3.demo1;

import java.util.Scanner;

public class Year {

	public static void demo1(int year){
		boolean result=(year%400==0)||(year%4==0&&year%100!=0);
		if(result){
			System.out.println("是闰年");
		}else{
			System.out.println("不是闰年");
		}
		
	}
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		System.out.println("请输入一个年份");
		int year=sc.nextInt();
		demo1(year);
		sc.close();
	}
}
